<template>
  <div class="hello">
    <template>
      <sjx_Header/>
    </template>
    <div class="banner">
      <p>{{ $t('header.howToPay') }}</p>
    </div>
    <div class="body">
      <div class="body-main">
        <h3>{{ $t('pay.payWay') }}</h3>
        <p>1. {{ $t('pay.downloadAPPinGoogle') }}</p>
        <p>2. {{ $t('pay.payInOrders') }}</p>
        <p>3. {{ $t('pay.transferAccounts') }}</p>
        <div 
          class="jump" 
          @click="jump">{{ $t('login.registerNow') }}</div>
      </div>
    </div>
    <template>
      <sjx_Footer/>
    </template>
  </div>
</template>

<script>
import sjx_Header from '../components/header'
import sjx_Footer from '../components/footer'
export default {
  name: 'Home',
  components: {
    sjx_Header,
    sjx_Footer
  },
  data() {
    return {
      bar: 1,
      activeNames: ['1']
    }
  },
  watch: {
    '$route.query.id'() {
      this.bar = this.$route.query.id
    }
  },
  mounted() {
    this.bar = this.$route.query.id ? this.$route.query.id : '1'
  },
  methods: {
    jump() {
      this.$router.push('/')
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
@media screen and (min-width: 1200px) {
  .body-main {
    width: 1200px;
    height: auto;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    h3 {
      width: 100%;
      color: #3462ff;
      font-size: 24px;
      text-align: center;
      margin: 17px 0 32px;
    }
    p {
      width: 100%;
      font-size: 16px;
      color: #5c5c5c;
      text-align: center;
      line-height: 36px;
    }
    .jiantou {
      width: 13px;
      height: 96px;
      background-image: url('../static/img/jiantou1.png');
      background-repeat: no-repeat;
      background-size: 100%;
      margin-top: 12px;
    }
    .jump {
      width: 150px;
      height: 50px;
      background: rgba(52, 98, 255, 1);
      border-radius: 25px;
      box-shadow: 2px 0px 13px rgba(48, 77, 220, 0.45);
      margin-top: 70px;
      font-size: 18px;
      color: rgba(255, 255, 255, 1);
      line-height: 50px;
      text-align: center;
      cursor: pointer;
    }
  }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .body-main {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    h3 {
      width: 100%;
      color: #3462ff;
      font-size: 24px;
      text-align: center;
      margin: 17px 0 32px;
    }
    p {
      width: 100%;
      font-size: 16px;
      color: #5c5c5c;
      text-align: center;
      line-height: 36px;
    }
    .jiantou {
      width: 13px;
      height: 96px;
      background-image: url('../static/img/jiantou1.png');
      background-repeat: no-repeat;
      background-size: 100%;
      margin-top: 12px;
    }
    .jump {
      width: 150px;
      height: 50px;
      background: rgba(52, 98, 255, 1);
      border-radius: 25px;
      box-shadow: 2px 0px 13px rgba(48, 77, 220, 0.45);
      margin-top: 70px;
      font-size: 18px;
      color: rgba(255, 255, 255, 1);
      line-height: 50px;
      text-align: center;
      cursor: pointer;
    }
  }
}
@media only screen and (max-width: 767px) {
  .body-main {
    width: 90%;
    height: auto;
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    h3 {
      width: 100%;
      color: #3462ff;
      font-size: 20px;
      text-align: center;
      margin: 20px 0;
    }
    p {
      width: 100%;
      font-size: 14px;
      color: #5c5c5c;
      text-align: center;
      line-height: 20px;
    }
    .jiantou {
      width: 10px;
      height: 80px;
      background-image: url('../static/img/jiantou1.png');
      background-repeat: no-repeat;
      background-size: cover;
      margin-top: 12px;
    }
    .jump {
      width: 120px;
      height: 40px;
      background: rgba(52, 98, 255, 1);
      border-radius: 20px;
      box-shadow: 2px 0px 13px rgba(48, 77, 220, 0.45);
      margin: 30px 0;
      font-size: 16px;
      color: rgba(255, 255, 255, 1);
      line-height: 40px;
      text-align: center;
      cursor: pointer;
    }
  }
}
</style>
